-- GENERATED SPELL FOR [Boulder'mok Brute] --


function spell0_21046(pUnit, Event) --@Debilitating Strike,n/a--
pUnit:FullCastSpellOnTarget(37577,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21046', 524, 1)
end

function spell1_21046(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_21046', 626, 1)
end

function Sorts_21046(pUnit, Event)
local choix_sorts_21046 = math.random(0, 1)
if choix_sorts_21046 == 0 then
pUnit:RegisterEvent('spell0_21046', 1, 1)
end
if choix_sorts_21046 == 1 then
pUnit:RegisterEvent('spell1_21046', 1, 1)
end
end

function mob21046_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21046', math.random(1500, 3000), 1)
end

function mob21046_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21046_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21046_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21046, 1, 'mob21046_Action')
RegisterUnitEvent(21046, 2, 'mob21046_Leave')
RegisterUnitEvent(21046, 3, 'mob21046_Kill')
RegisterUnitEvent(21046, 4, 'mob21046_Die')
